IIF

 

Description

IIF acts like an if-else statement.  If the EXPRESSION attribute condition is true, then the first value is assigned to the MathVariable.  If false, the second value is assigned to the MathVariable.

 

TYPE = IIF

Element

Attributes

Attribute Value

Element Value

<MathVariable>

TYPE

IIF

True Value, False Value

EXPRESSION

Condition to evaluate. See operators for more details.

 

 

XML Example

<MathVariable VARIABLENAME="APPEndDateMV" TYPE="IIF" EXPRESSION="DaysDiffOf(EffectiveDateMV,APPEndDateMV) &lt;=0" DATATYPE="DATE">MaturityDate,APPEndDateMV</MathVariable>